﻿using System;
using System.Collections;
using UnityEngine;
using UnityEngine.UI;

namespace Studio
{
	// Token: 0x02000510 RID: 1296
	public class NotificationScene : MonoBehaviour
	{
		// Token: 0x0600210E RID: 8462 RVA: 0x000CB5E4 File Offset: 0x000C97E4
		private IEnumerator NotificationCoroutine()
		{
			yield return new WaitForSecondsRealtime(NotificationScene.waitTime);
			Singleton<Scene>.Instance.UnLoad();
			yield break;
		}

		// Token: 0x0600210F RID: 8463 RVA: 0x000CB5F8 File Offset: 0x000C97F8
		private void Awake()
		{
			this.imageMessage.sprite = NotificationScene.spriteMessage;
			this.transImage.sizeDelta = new Vector2(NotificationScene.width, NotificationScene.height);
			base.StartCoroutine(this.NotificationCoroutine());
			NotificationScene.width = 416f;
			NotificationScene.height = 48f;
		}

		// Token: 0x04002299 RID: 8857
		[SerializeField]
		private Image imageMessage;

		// Token: 0x0400229A RID: 8858
		[SerializeField]
		private RectTransform transImage;

		// Token: 0x0400229B RID: 8859
		public static Sprite spriteMessage;

		// Token: 0x0400229C RID: 8860
		public static float waitTime = 1f;

		// Token: 0x0400229D RID: 8861
		public static float width = 416f;

		// Token: 0x0400229E RID: 8862
		public static float height = 48f;
	}
}
